/*
 * @Description:
 * @Version: 1.0
 * @Autor: yel
 * @Date: 2022-08-27 15:48:45
 * @LastEditors: yel
 * @LastEditTime: 2022-08-30 08:47:14
 */
/* 安全生产
 * @Description:
 * @Version: 1.0.0
 * @Autor: zhou
 * @Date: 2022-04-21 08:15:26
 * @LastEditors: zhou
 * @LastEditTime: 2022-05-15 20:55:05
 */
import request from "@/utils/request";

// 其他===========================================================
//获取天气接口
export function getWeather() {
    return request({
        url: "/env/datav/get_weather_info",
        method: "get",
    });
}

//危险等级接口
export function dangerLevel(params) {
    return request({
        url: "/safeProd/datav/danger_source_analysis",
        method: "get",
        isToken: false,
        params: params,
    });
}

//企业分类接口
export function industryType(params) {
    return request({
        url: "/safeProd/datav/company_analysis",
        method: "get",
        isToken: false,
        params: params,
    });
}

//企业分类接口
export function companyAll(params) {
    return request({
        url: "/safeProd/datav/company_all",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 1园区概况==================================================================
//企业列表
export function listCompany(params) {
    return request({
        url: "/safeProd/datav/company_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 企业列表-监实时控
export function getMonitoringCompanyList(params) {
    return request({
        url: "/safeProd/datav/monitoring_company_list",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 行业列表
export function listIndustry(params) {
    return request({
        url: "/safeProd/datav/company_industry_list",
        method: "get",
        isToken: false,
        params: params,
    });
}

// w危险数量
export function listTatistical(params) {
    return request({
        url: "/safeProd/datav/company_danger_tatistical",
        method: "get",
        isToken: false,
        params: params,
    });
}

//企业详情
export function getCompany(company_id) {
    return request({
        url: "/safeProd/datav/company_detail",
        method: "get",
        isToken: false,
        params: {
            id: company_id,
        },
    });
}

// 企业列表-危险源
export function getDangerCompanyList(params) {
    return request({
        url: "/safeProd/datav/danger_company_list",
        method: "get",
        isToken: false,
        params,
    });
}

//企业照片集
export function listCompanyPhotos() {
    return request({
        url: "/safeProd/datav/company_photos",
        method: "get",
        isToken: false,
    });
}
// 安全规范列表
export function safeNormList(params) {
    return request({
        url: "/safeProd/datav/safe_norm_list",
        method: "get",
        isToken: false,
        params,
    });
}
// 安全规范列表
export function safeNormDetail(params) {
    return request({
        url: "/safeProd/datav/safe_norm_detail",
        method: "get",
        isToken: false,
        params,
    });
}
// 摄像头列表
export function getCameraList(params) {
    return request({
        url: "/safeProd/datav/get_camera_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 播放视频
export function getCameraStream(params) {
    return request({
        url: "/safeProd/datav/get_camera_stream",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 员工上报列表
export function listReport(params) {
    return request({
        url: "/safeProd/datav/report_list",
        method: "get",
        isToken: false,
        params,
    });
}
// 员工上报的ecahrt
export function analysisReport(params) {
    return request({
        url: "/safeProd/datav/report_analysis",
        method: "get",
        isToken: false,
        params,
    });
}
//设备参数列表
export function listParamDevice(params) {
    return request({
        url: "/safeProd/datav/param_device_list",
        method: "get",
        isToken: false,
        params,
    });
}
//设备参数ecahrt
export function analysisDevice(params) {
    return request({
        url: "/safeProd/datav/param_device_analysis",
        method: "get",
        isToken: false,
        params,
    });
}

//待检修设备列表
export function listRepairDevice(params) {
    return request({
        url: "/safeProd/datav/repair_device_list",
        method: "get",
        isToken: false,
        params,
    });
}
// 企业风险列表
export function listRisk(params) {
    return request({
        url: "/safeProd/datav/risk_trace_list",
        method: "get",
        isToken: false,
        params,
    });
}
// 企业风险详情
export function getRisk(params) {
    return request({
        url: "/safeProd/datav/risk_trace_detail",
        method: "get",
        isToken: false,
        params,
    });
}
// 1.0.7 园区概况/企业信息/危险源/预警信息
export function listWarning(params) {
    return request({
        url: "/safeProd/datav/safe/hazard_warning_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.0.7 园区概况/企业信息/危险源/评价/评估报告
export function listEvaReport(params) {
    return request({
        url: "/safeProd/datav/safe/evaluation_report_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.0.7 园区概况/企业信息/危险源/整改反馈
export function listRectification(params) {
    return request({
        url: "/safeProd/datav/safe/rectification_list",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 1.1 园区概况/园区规划
export function parkPlan(params) {
    return request({
        url: "/safeProd/datav/park/park_plan",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.2 园区概况/安全管理体系
export function safeManageList(params) {
    return request({
        url: "/safeProd/datav/park/safe_manage_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.2 园区概况/安全管理体系详情
export function safeManageDetail(params) {
    return request({
        url: "/safeProd/datav/park/safe_manage_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.3 园区概况/禁限控目录
export function prohibitionCatalogue(params) {
    return request({
        url: "/safeProd/datav/park/prohibition_catalogue", // title=2禁止危险化学品目录,  title=1限制和控制危险化学品目录
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.4 园区概况/涉及重点监管的危险化学品
export function chemicalsList(params) {
    return request({
        url: "/safeProd/datav/park/chemicals_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.4 园区概况/重点监管的化工工艺
export function chemicalsProcessList(params) {
    return request({
        url: "/safeProd/datav/park/chemicals_process_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.4 园区概况/危险化学品重大危险源
export function hazardSourceList(params) {
    return request({
        url: "/safeProd/datav/park/hazard_source_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.5 园区概况/从业人员/企业列表
export function listCompanyUser(params) {
    return request({
        url: "/safeProd/datav/park/user_company_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.5 园区概况/从业人员/内容列表
export function listPractitioner(params) {
    return request({
        url: "safeProd/datav/park/practitioner_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.5 园区概况/从业人员/分析占比
export function analysisPer(params) {
    return request({
        url: "/safeProd/datav/park/ratio_analysis",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.5 园区概况/从业人员/证书
export function practitionerCertificate(params) {
    return request({
        url: "/safeProd/datav/park/practitioner_certificate",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.6 园区概况/值班值守/企业列表
export function listCompanyDuty(params) {
    return request({
        url: "/safeProd/datav/park/duty_company_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.6 园区概况/值班列表
export function listDuty(params) {
    return request({
        url: "/safeProd/datav/park/duty_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.7 园区概况/事故事件列表
export function accidentList(params) {
    return request({
        url: "/safeProd/datav/park/accident_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 1.7 园区概况/企业列表
export function listCompanyPark(params) {
    return request({
        url: "/safeProd/datav/park/company_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 2实施监控==================================

// 3安全统计===============================
// 园区巡检
export function partList(is_park) {
    return request({
        url: "/safeProd/datav/check_analysis",
        method: "get",
        isToken: false,
        params: {
            is_park: is_park,
        },
    });
}

//最近考试列表
export function listRecentExam(params) {
    return request({
        url: "/safeProd/datav/recent_exam_list",
        method: "get",
        isToken: false,
        params,
    });
}

//考试分析
export function trainingAnalysis(params) {
    return request({
        url: "/safeProd/datav/training_analysis",
        method: "get",
        isToken: false,
        params,
    });
}

//安全规范列表
export function listSafeNorm(company_id) {
    return request({
        url: "/safeProd/datav/safe_norm_list",
        method: "get",
        isToken: false,
        params: {
            company_id: company_id,
        },
    });
}

//安全规范详情
export function getSafeNorm(safe_norm_id) {
    return request({
        url: "/safeProd/datav/safe_nrom_detail",
        method: "get",
        isToken: false,
        params: {
            id: safe_norm_id,
        },
    });
}

//设备安全统计
export function deviceStatistical(company_id) {
    return request({
        url: "/safeProd/datav/device_statistical",
        method: "get",
        isToken: false,
        params: {
            company_id: company_id,
        },
    });
}

//安全规范统计
export function safeNormStatistical() {
    return request({
        url: "/safeProd/datav/safe_norm_statistical",
        method: "get",
        isToken: false,
    });
}

// 4[重大危险源]页面===========================================

//重大危险源列表
export function listDangerSource(params) {
    return request({
        url: "/safeProd/datav/danger_source_list",
        method: "get",
        isToken: false,
        params,
    });
}

//重大危险源详情
export function getDangerSource(danger_source_id) {
    return request({
        url: "/safeProd/datav/danger_source_detail",
        method: "get",
        isToken: false,
        params: {
            id: danger_source_id,
        },
    });
}

//重大危险源照片集
export function listDangerSourcePhotos() {
    return request({
        url: "/safeProd/datav/danger_source_photos",
        method: "get",
        isToken: false,
    });
}
// 5开停车大检修====================================================
// 5.1 开停车大检修/企业列表
export function listCompanyOverhaul(params) {
    return request({
        url: "/safeProd/datav/overhaul/overhaul_company_list",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 5.2 开停车明细列表
export function listOpenPark(params) {
    return request({
        url: "/safeProd/datav/overhaul/open_park_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 5.3 大检修明细列表
export function listRepair(params) {
    return request({
        url: "/safeProd/datav/overhaul/repair_list",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 5.4 开停车大检修/ 类别占比
export function cateRatio(params) {
    return request({
        url: "safeProd/datav/overhaul/cate_ratio",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 5.5开停车大检修/ 近6个月
export function overhaulStatistical(params) {
    return request({
        url: "/safeProd/datav/overhaul/statistical",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 6 特殊作业====================================================
// 6.1 企业列表(特殊作业)
export function listCompanyWork(params) {
    return request({
        url: "/safeProd/datav/work/work_company_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 6.2 特殊作业列表
export function listWork(params) {
    return request({
        url: "/safeProd/datav/work/company_work_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 6.3 特殊作业详情
export function detailWork(params) {
    return request({
        url: "/safeProd/datav/work/work_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 6.4 特殊作业近6个月报告
export function statisticalWork(params) {
    return request({
        url: "/safeProd/datav/work/statistical",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 7 敏捷应急====================================================
// 7.1 企业列表 (敏捷应急)
export function listCompanyEmergent(params) {
    return request({
        url: "/safeProd/datav/emergency/emergency_company_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 7.2 应急资源统计 和 方案
export function statisticalEmergent(params) {
    return request({
        url: "/safeProd/datav/emergency/statistical",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 7.3 应急资源列表
export function listEmergent(params) {
    return request({
        url: "/safeProd/datav/emergency/supplies_list",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 敏捷应急================
// 应急预案列表
export function emergencyList(params) {
    return request({
        url: "/safeProd/datav/emergency/article_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 应急预案详情
export function emergencyDetail(params) {
    return request({
        url: "/safeProd/datav/emergency/article_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 其他应急资源列表
export function suppliesList(params) {
    return request({
        url: "/safeProd/datav/emergency/company_supplies_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 其他应急资源详情
export function suppliesDetail(params) {
    return request({
        url: "/safeProd/datav/emergency/supplies_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 演练管理列表
export function drillList(params) {
    return request({
        url: "/safeProd/datav/emergency/drill_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 演练管理详情
export function drillDetail(params) {
    return request({
        url: "/safeProd/datav/emergency/drill_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 应急指挥调度列表
export function commandList(params) {
    return request({
        url: "/safeProd/datav/emergency/command_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 应急指挥调度详情
export function commandDetail(params) {
    return request({
        url: "/safeProd/datav/emergency/command_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 双重预防================
// 隐患列表
export function riskList(params) {
    return request({
        url: "/safeProd/datav/prevention/risk_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 隐患详情
export function riskDetail(params) {
    return request({
        url: "/safeProd/datav/prevention/risk_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 督办提醒列表
export function remindList(params) {
    return request({
        url: "/safeProd/datav/prevention/remind_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 督办提醒详情
export function remindDetail(params) {
    return request({
        url: "/safeProd/datav/prevention/remind_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 抽查检查列表
export function checkList(params) {
    return request({
        url: "/safeProd/datav/prevention/check_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 抽查检查详情
export function checkDetail(params) {
    return request({
        url: "/safeProd/datav/prevention/check_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 第三方单位================
// 第三方单位列表
export function unitInfoList(params) {
    return request({
        url: "safeProd/datav/third/unit_info_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 基本信息详情
export function unitInfoDetail(params) {
    return request({
        url: "/safeProd/datav/third/unit_info_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 培训记录列表
export function trainingRecordsList(params) {
    return request({
        url: "/safeProd/datav/third/training_records_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 培训记录详情
export function trainingRecordsDetail(params) {
    return request({
        url: "/safeProd/datav/third/training_records_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 服务记录列表
export function serviceRecordsList(params) {
    return request({
        url: "/safeProd/datav/third/service_records_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 服务记录详情
export function serviceRecordsDetail(params) {
    return request({
        url: "/safeProd/datav/third/service_records_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 违规记录列表
export function violationsList(params) {
    return request({
        url: "/safeProd/datav/third/violations_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 违规记录详情
export function violationsDetail(params) {
    return request({
        url: "/safeProd/datav/third/violations_detail",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 诚信评分列表
export function sincerityScoreList(params) {
    return request({
        url: "/safeProd/datav/third/sincerity_score_list",
        method: "post",
        params: params,
    });
}
